package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.query.HotelQueryObject;
import cn.wolfcode.trip.base.service.IHotelDetailService;
import cn.wolfcode.trip.base.service.IHotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hotelDetails")
public class HotelDetailController {
    @Autowired
    private IHotelDetailService hotelDetailService;

    /*查询指定id的酒店详情
    动作:GET
    资源:/hotelDetails/{id}
    参数:id
    */
     @GetMapping("/{id}")
     public Object listHotelQuery(@PathVariable Long id){

         return hotelDetailService.listByHotelId(id);
     }



}
